package cn.px.dao.pojo;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Description 菜单树
 * @author 品讯科技
 * @date 2024-08
 * @Version Copyright (c) 2019,北京乾元坤和科技有限公司 All rights reserved.
 */
@Data
@Accessors(chain = true)
public class CommonTreeScopedSlots {
    /**
     * 图标
     */
    private String icon;

    /**
     * 标题插槽
     */
    private String title;

    public CommonTreeScopedSlots(String key) {
        this.icon = key;
        this.title = key + "_TITLE";
    }

    public CommonTreeScopedSlots(String icon, String title) {
        this.icon = icon;
        this.title = title;
    }
}
